/**
 * \file rtppollthread.h
 */

#ifndef RTPPOLLTHREAD_H

#define RTPPOLLTHREAD_H

//#include "rtpconfig.h"

//#ifdef RTP_SUPPORT_THREAD

//#include "rtptransmitter.h"
#include "jthread.h"
//#include <jthread.h>
#include "jmutex.h"
#include <list>



class RTPSession;
class RTCPScheduler;

class  RTPPollThread : private jthread::JThread
{
public:
	RTPPollThread(SOCKET sock);
	~RTPPollThread();
	int Start();
	void Stop();
private:
	void *Thread();
	
	bool stop;
	jthread::JMutex stopmutex;
	//RTPTransmitter *transmitter;
	//
	//RTPSession &rtpsession;
	//RTCPScheduler &rtcpsched;
};


//#endif // RTP_SUPPORT_THREAD

#endif // RTPPOLLTHREAD_H
